const { VueLoaderPlugin } = require("vue-loader")
const path = require("path")

module.exports = {
    mode: "production",
    module: {
        rules: [
            {
                test: /\.vue$/,
                use: ["vue-loader"]
            },
            {
                test: /\.(js | vue)$/,
                exclude: /node_modules/,
                use: {
                    loader: "babel-loader",
                    options: {
                        presets: ['@babel/preset-env']
                    }
                }
            }
        ]
    },
    plugins: [
        new VueLoaderPlugin()
    ],
    resolve: {
        alias: {
            Common: path.resolve(__dirname, "./common")
        }
    }
}